package com.zyz.common.core.constants;

public class CacheConstants {
    public static final String LOGIN_TOKEN_KEY = "logintoken:";  // Cache中登录的key的前缀

    public static final Long LOGIN_TOKEN_TIMEOUT = 600L; // 过期时间 10h

    public static final Long LOGIN_REFRESH_TIMEOUT = 180L; // 登录超时刷新时间阈值

    public static final String PHONE_CODE_KEY = "p:code:"; // 存储手机验证码的key的前缀

    public static final String PHONE_CODE_EVERYDAY_COUNT_KEY = "c:d:count:"; // 用户每天最大验证码生成次数key的前缀

    public static final String EXAM_UNFINISHED_LIST = "e:t:l"; // 未完赛的列表

    public static final String EXAM_HISTORY_LIST = "e:h:l";  // 历史竞赛列表

    public static final String EXAM_DETAIL = "e:d:"; // 竞赛详情

    public final static String USER_EXAM_LIST = "u:e:l:";   //用户竞赛列表

    public final static String USER_DETAIL = "u:d:";  // 用户详情

    public final static String USER_UPLOAD_TIMES_KEY = "u:u:t:"; // 用户头像更新次数外层key前缀

    public static final String QUESTION_LIST = "q:l"; // 题目List列表

    public static final String QUESTION_HOT = "q:hot"; // 题目热榜排名ZSet的key

    public static final String EXAM_QUESTION_LIST = "e:q:l:"; // 竞赛题目列表key前缀

    public static final String USER_MESSAGE_LIST = "u:m:l:"; // 用户消息列表

    public static final String MESSAGE_DETAIL = "m:d:"; // 用户消息详情

    public static final String EXAM_RANK_LIST = "e:r:l:"; // 用户竞赛排名

}
